package io.vov.vitamio.entity;

import com.j256.ormlite.field.DatabaseField;
import com.j256.ormlite.table.DatabaseTable;

/**
 * 电视节目单
 */
@DatabaseTable(tableName="TvProgram")
public class TVProgram {

	@DatabaseField(generatedId = true)
	// 自增长的主键
	public Integer id;
	/**
	 * 作为电视台唯一标识符
	 */
	@DatabaseField(canBeNull = false)
	private String tvCode;
	/**
	 * 节目开始时间
	 */
	@DatabaseField
	private String playTime;

	/**
	 * 节目标题
	 */
	@DatabaseField
	private String title;
	
	/**
	 * 电视台名称信息
	 * @deprecated webxml.com 服务相关，可以删除
	 */
	@DatabaseField
	public String tvStationInfo;

	public String getPlayTime() {
		return playTime;
	}

	public void setPlayTime(String playTime) {
		this.playTime = playTime;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getTvCode() {
		return tvCode;
	}

	public void setTvCode(String tvCode) {
		this.tvCode = tvCode;
	}

	@Override
	public String toString() {
		// TODO Auto-generated method stub
		return this.getClass().getSimpleName() + ":{tv_code: " + tvCode + ", playTime:" + playTime + ", title:" + title + "}";
	}

	public void setTvStationInfo(String tvStationInfo) {
		this.tvStationInfo = tvStationInfo;
	}

	public String getTvStationInfo() {
		return tvStationInfo;
	}
}
